<template>
  <div>
    <div class="article-detail-top-wraper">
      <div class="article-detail-background-pic">
        <el-image :src="articleData.pic" fit="cover"></el-image>
      </div>
      <div class="article-detail-content">
        <el-row>
          <el-col :span="4"
            ><div class="img-wraper">
              <el-image :src="articleData.pic" fit="cover"></el-image></div
          ></el-col>
          <el-col :span="20">
            <div class="article-detail-text">
              <div class="article-detail-title">
                {{ "#" + articleData.title + "#" }}
              </div>
              <div class="article-detail-view">
                {{ "今日阅读" + articleData.hotNum + "万" }}
              </div>
              <div class="article-detail-lead">
                导语：{{ articleData.title }}
              </div>
            </div>
          </el-col>
        </el-row>
      </div>
    </div>

    <ArticleDetailItem :parentComponent="1"></ArticleDetailItem>
  </div>
</template>

<script>
import ArticleDetailItem from "./articledetail/ArticleDetailItem.vue";
export default {
  components: { ArticleDetailItem },
  data() {
    return {
      articleData: {
        title: "以时下放心不下的责任感担当作为",
        text: "今天，中共中央政治局召开会议，党中央明确要求，疫情要防住、经济要稳住、发展要安全。防疫情、稳经济、促发展、保民生，需要各方面求真务实、担当作为。会议特别提到，各级领导干部在工作中要有“时时放心不下”的责任感。干部干字当头，各级干部带领大家一起努力拼搏，各方形成最大合力，把自己的事情办好，我们就有信心克服困难挑战，实现全年经济社会发展预期目标。",
        pic: "https://wx2.sinaimg.cn/mw2000/007RXE02gy1h1qxwilhxdj30qo0qoq72.jpg",
        hotNum: 12432,
      },
    };
  },
};
</script>

<style scoped lang="less">
.article-detail-top-wraper {
  margin-bottom: 10px;
  background-color: #fff;
  box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  border-radius: 4px;
}

.article-detail-background-pic {
  .el-image {
    width: 100%;
    height: 150px;
    filter: blur(2px);
  }
}
.article-detail-content {
  margin-top: -40px;
  .img-wraper {
    width: 100%;
    text-align: right;
    .el-image {
      height: 100px;
      min-height: 100px;
      border-radius: 5px;
    }
  }
  .article-detail-text {
    margin-left: 10px;
    .article-detail-title {
      text-align: left;
      font-size: 20px;
      font-weight: 700;
      color: white;
    }
    .article-detail-view {
      text-align: left;
      color: #939393;
      font-size: 12px;
      margin-top: 20px;
    }

    .article-detail-lead {
      margin-top: 10px;
      width: 100%;
      text-align: left;
      font-size: 16px;
      color: #333;
    }
  }
}
</style>